From: Evan Welsh Date: Sat, 30 Oct 2021 22:00:02 +0000 (-0700) Subject: magnifier: Removed unused get*Color() methods X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~281^2~2^2~72 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=c3a764693df724c70fd99199c1bae0d52a824e4d;p=gnome-shell.git magnifier: Removed unused get*Color() methods They use API from Clutter.Rectangle which hasn't been used in the magnifier since commit c815979f, and has since been removed from Clutter altogether. Since the methods are unused, remove them instead of fixing them. Part-of: --- diff --git a/js/ui/magnifier.js b/js/ui/magnifier.js index 522b201fe..a9e174df0 100644 --- a/js/ui/magnifier.js +++ b/js/ui/magnifier.js @@ -407,21 +407,6 @@ export class Magnifier extends Signals.EventEmitter { } } - /** - * getCrosshairsColor: - * Get the color of the crosshairs. - * - * @returns {string} The color as a string, e.g. '#0000ffff' or 'blue'. - */ - getCrosshairsColor() { - if (this._crossHairs) { - let clutterColor = this._crossHairs.getColor(); - return clutterColor.to_string(); - } else { - return '#00000000'; - } - } - /** * setCrosshairsThickness: * @@ -1928,16 +1913,6 @@ class Crosshairs extends Clutter.Actor { this._vertBottomHair.background_color = clutterColor; } - /** - * getColor: - * Get the color of the crosshairs. - * - * @returns {ClutterColor} the crosshairs color - */ - getColor() { - return this._horizLeftHair.get_color(); - } - /** * setThickness: *